<template>
		<view class="section">
			<view class="list">
				
				<view class="row" @click="userCenter">
					<view class="left">
						<view class="text">个人资料</view>
					</view>
					<view class="right">
						<uni-icons type="right" size="15" color="#aaa"></uni-icons>
					</view>
				</view>
				
				<view class="row" @click="logOut">
					<view class="left">
						<view class="text">退出登录</view>
					</view>
					<view class="right">
						<uni-icons type="right" size="15" color="#aaa"></uni-icons>
					</view>
				</view>
			</view>	
		</view>
</template>

<script setup>
	import { mutations } from "../../../uni_modules/uni-id-pages/common/store.js"
	// 用户中心
	const userCenter=()=>{
		uni.navigateTo({
			url:'/uni_modules/uni-id-pages/pages/userinfo/userinfo'
		})
	}
	// logOut
	const logOut = () =>{
		mutations.logout();
	}
</script>

<style lang="scss" scoped>
	.section{
		width: 690rpx;
		margin: 50rpx auto;
		border-radius: 10rpx;
		border: 1rpx solid #eee;
		box-shadow: 0 0 30rpx rgba(0, 0, 0, 0.05);
		.list{
			.row{
				display: flex;
				height: 100rpx;
				padding: 0 30rpx;
				background: #fff;
				position: relative;
				align-items: center;
				justify-content: space-between;
				border-bottom: 1rpx solid #eee;
				&:last-child{border-bottom: 0;}
				.left{
					display: flex;
					align-items: center;
					.text{
						color: #666;
						padding: 0 10rpx;
					}
				}
				.right{
					display: flex;
					align-items: center;
					.text{
						color: #aaa;
						font-size: 28rpx;
					}
				}
				button{
						top:0;
						left:0;
						width:100%;
						opacity: 0;
						height: 100rpx;
						position: absolute;
					}
				}
			}
		}
</style>
